/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: adol book
 * Date: 2022-05-03
 * Time: 13:25
 */

class Person{
    int a = 97;
    public void eat(){
        System.out.println("吃火锅");
    }
}
class Student extends Person{
    int a = 100;
    public void eat(){
        System.out.println("吃饭");
    }
    public void func(){
        System.out.println(a);
        System.out.println(super.a);
        eat();
        super.eat();
    }
}
public class demo2 {
    public static void main(String[] args) {
        Student student = new Student();
        student.func();
    }
}
